# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=memtest86+
pkgver=5.01
pkgrel=2
pkgdesc="An advanced memory diagnostic tool"
arch=('any')
url="http://www.memtest.org"
license=('GPL2')
source=(http://www.memtest.org/download/${pkgver}/${pkgname}-${pkgver}.bin.gz
        60_memtest86+)
sha1sums=('acf4b99b435d4e99b8027221524e57d70b8cae47'
          '2aa2deeb7d7dc56f389aa1487b7a57b0d44ce559')

package() {
  install -D -m644 "${srcdir}/${pkgname}-${pkgver}.bin" "${pkgdir}/boot/memtest86+/memtest.bin"
  install -D -m755 "${srcdir}/60_memtest86+" "${pkgdir}/etc/grub.d/60_memtest86+"
}
